<%@ page import="website.Review" %>



<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'apartment', 'error')} required">
	<label for="apartment">
		<g:message code="review.apartment.label" default="Apartment" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="apartment" name="apartment.id" from="${website.Apartment.list()}" optionKey="id" required="" value="${reviewInstance?.apartment?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'clean', 'error')} required">
	<label for="clean">
		<g:message code="review.clean.label" default="Clean" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="clean" required="" value="${fieldValue(bean: reviewInstance, field: 'clean')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'cons', 'error')} ">
	<label for="cons">
		<g:message code="review.cons.label" default="Cons" />
		
	</label>
	<g:textField name="cons" value="${reviewInstance?.cons}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'date_created', 'error')} required">
	<label for="date_created">
		<g:message code="review.date_created.label" default="Datecreated" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date_created" precision="day"  value="${reviewInstance?.date_created}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'loc', 'error')} required">
	<label for="loc">
		<g:message code="review.loc.label" default="Loc" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="loc" required="" value="${fieldValue(bean: reviewInstance, field: 'loc')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'pros', 'error')} ">
	<label for="pros">
		<g:message code="review.pros.label" default="Pros" />
		
	</label>
	<g:textField name="pros" value="${reviewInstance?.pros}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'staff', 'error')} required">
	<label for="staff">
		<g:message code="review.staff.label" default="Staff" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="staff" required="" value="${fieldValue(bean: reviewInstance, field: 'staff')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reviewInstance, field: 'stand', 'error')} required">
	<label for="stand">
		<g:message code="review.stand.label" default="Stand" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="stand" required="" value="${fieldValue(bean: reviewInstance, field: 'stand')}"/>
</div>

